<form name="form_admin" method="POST" action="<?php echo formEditAction()?>" onsubmit="return CheckForm(this);" >
<input type="hidden" name="id" value="<?php echo $id?>" />

<table width="100%" cellpadding="0" cellspacing="0" id="tbledit">
	<tr>
        <td width="15%"><b><span class="style1"><?php echo _URL?></span></b></td>
        <td><input class="normal3" type="text" name="URL" id="URL" value="<?php echo $content["cUrlString"]; ?>" />
			<span id="div_url" style="color:#FF0000"></span></td>
    </tr>

	<tr>
      <td><span class="style1"><b><?php echo _NAME?></b></span></td>
	  <td>
	  	<input class="normal3" type="text" name="Name" id="Name" value="<?php echo $content["cName"]?>" />
	  </td>
    </tr>

	<?php
	if($hasTag)
	{
	?>
	<tr>
      <td><b><?php echo _TAGS?></b></td >
	  <td><input type="text" id="Tag" name="Tag" value="<?php echo $tag["cTag"]?>" /></td>
    </tr>
	<?php
	}
	?>

	<tr>
      <td><b><?php echo _PARENTCATEGORY?></b></td>
	  <td>
	  	<select name="ParentId" id="ParentId">
          <?php echo ListOptionCategory($module,$content['iParentId'],-1)?>
        </select>
		</td>
    </tr>

	<tr>
      <td><b><?php echo _INTROIMAGE?></b></td>
	  <td>
            <?php echo inputFile('ImgIntro',$content["cImage"])?>
		</td>
    </tr>

    <?php
	if(HAS_BANNER==true)
	{
	?>
    <tr>
        <td><b><?php echo _BANNERIMAGE?></b></td>
	  	<td>
                <?php echo inputFile('ImgBanner',$content["cBanner"],'banner')?>
	    </td>
    </tr>
    <?php
	}
	?>
    
    <?php
	if(HAS_BACKGROUND==true)
	{
	?>
    <tr>
        <td><b>Background Image</b></td>
        <td>
            <?php echo inputFile('ImgBackground',$content["cBackground"],'background')?>
        </td>
    </tr>
    <?php
	}
	?>

	<tr>
      <td valign="top" style="vertical-align:top"><b>Status</b></td>
	  <td>
            <select name="Status" id="Status">
              <?php echo liststatus($content["iStatus"]) ?>
            </select>
            &nbsp;&nbsp;&nbsp;
            <b><?php echo _ORDER?></b>
            <?php echo getOrderInput()?>
      </td>
    </tr>

    <tr>
        <td><b><?php echo _METATITLE?></b></td>
        <td>
	        <input class="normal3" style="width:90%" type="text" name="MetaTitle" id="MetaTitle" value="<?php echo $content["cMetaTitle"]; ?>" />        </td>
    </tr>

    <tr>
        <td><b><?php echo _METAKEYWORDS?></b></td>
        <td>
	        <input class="normal3"type="text" name="MetaKeywords" id="MetaKeywords" value="<?php echo $content["cMetaKeywords"]; ?>" />        </td>
    </tr>

    <tr>
        <td><b><?php echo _METADESCRIPTIONS?></b></td >
        <td style="padding-bottom:10">
		<textarea style="height:70px; width:90%;"  name="MetaDescription" class="noeditor"  id="MetaDescription"><?php echo $content["cMetaDescription"]; ?></textarea></td>
    </tr>

     <tr>
        <td valign="top" style="vertical-align:top"><b><?php echo _DESCRIPTION?></b></td>
        <td style="padding-bottom:10"><textarea style="height:100px; width:90%;"
			name="Description"><?php echo $content["cDescription"]?></textarea></td>
    </tr>

     <tr>
        <td valign="top" style="vertical-align:top"><b>Content</b></td>
        <td><textarea style="height:300px; width:90%;" name="Intro"><?php echo $content["cIntro"]; ?></textarea></td>
    </tr>
</table>
</form>
<script language="javascript" type="text/javascript">
function CheckForm(f)
{
	if(f.URL.value=="")
	{
		alert("please enter Url String");
		return false;
	}
	if(f.Name.value=="")
	{
		alert("please enter name");
		return false;
	}
}
</script>